package com.zx.security.block.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * <p>
 * description: 负载均衡RestTemplate  <br>
 * create: 2025-05-11 20:06
 * </p>
 *
 * @author zhou  xun
 */
@Configuration
public class LoadBalancedRestTemplateConfiguration {
    /**
     * 负载均衡RestTemplate
     *
     * @return {@link RestTemplate}
     * @author zhou  xun
     * @since 2025-05-11
     */
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
